package cn.edu.ctbu.test.service;

import cn.edu.ctbu.test.domain.Sc;
import cn.edu.ctbu.test.domain.Student;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ScService {
    List<Sc> findAll();

    Page<Sc> findAll(Pageable pageable);

    Page<Sc> findAll(Example<Sc> student, Pageable pageable);




    Sc insert(Sc student);

    void delete(Long studentId);

    Sc getById(Long studentId);

    Sc update(Sc student);

    List<Sc> findScByStudentName(String name);

}
